﻿using Assets.Scripts.System;
using System.Collections;
using UnityEngine;

public class PlaySoundEffect : LogicalEffectBase
{
    PlaySoundEffectData data;
    public override void Init(GameObject originalGameObject, params object[] args)
    {
        base.Init(originalGameObject, args);
        data = effectData as PlaySoundEffectData;
    }
    public override void OnApply()
    {
        foreach (var id in data.audioClipIDList)
        {
            SoundSystem.Instance.PlaySound(id);
        }
    }
    public override bool GetLifeState()
    {
        return false;
    }

}
